From b65812bfc1ba12868c6702ddb4b4492f87edced0 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 19 Jun 2024 17:42:44 -0500 Subject: [PATCH] Automate generation of short documentaion in readme --- src/pgwui_develop/TEMPLATE/README.rst.mak | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pgwui_develop/TEMPLATE/README.rst.mak b/src/pgwui_develop/TEMPLATE/README.rst.mak index 80d2e5c..595d240 100644 --- a/src/pgwui_develop/TEMPLATE/README.rst.mak +++ b/src/pgwui_develop/TEMPLATE/README.rst.mak @@ -27,7 +27,12 @@ ${component} Short Documentation ------------------- -${component} stands for `PostgreSQL`_ Web User Interface . +<% + pgname = summary[0:11] + if pgname == 'PostgreSQL ': + pgname = '`PostgreSQL`_ ' + shortdoc = f'{component} stands for {pgname}{summary[11:]}.' +%>${shortdoc} Usage @@ -39,7 +44,7 @@ URL Configuration ----------------- The default URL for ${component} looks like -*https://www.example.com/upload*. +*https://www.example.com/${short_name}*. See the PGWUI_Server documentation for how to configure a different URL. -- 2.34.1